Optimal. Leaf size=84 \[ \frac {625 x^7}{14}+\frac {3625 x^6}{24}+\frac {1855 x^5}{8}+\frac {6245 x^4}{64}-\frac {21229 x^3}{96}-\frac {28747 x^2}{128}+\frac {307461}{512} \log \left (2 x^2-x+3\right )+\frac {122691 x}{128}+\frac {1156639 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{256 \sqrt {23}} \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1657, 634, 618, 204, 628} \begin {gather*} \frac {625 x^7}{14}+\frac {3625 x^6}{24}+\frac {1855 x^5}{8}+\frac {6245 x^4}{64}-\frac {21229 x^3}{96}-\frac {28747 x^2}{128}+\frac {307461}{512} \log \left (2 x^2-x+3\right )+\frac {122691 x}{128}+\frac {1156639 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{256 \sqrt {23}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rubi steps
\begin {align*} \int \frac {\left (2+3 x+5 x^2\right )^4}{3-x+2 x^2} \, dx &=\int \left (\frac {122691}{128}-\frac {28747 x}{64}-\frac {21229 x^2}{32}+\frac {6245 x^3}{16}+\frac {9275 x^4}{8}+\frac {3625 x^5}{4}+\frac {625 x^6}{2}-\frac {14641 (25-21 x)}{128 \left (3-x+2 x^2\right )}\right ) \, dx\\ &=\frac {122691 x}{128}-\frac {28747 x^2}{128}-\frac {21229 x^3}{96}+\frac {6245 x^4}{64}+\frac {1855 x^5}{8}+\frac {3625 x^6}{24}+\frac {625 x^7}{14}-\frac {14641}{128} \int \frac {25-21 x}{3-x+2 x^2} \, dx\\ &=\frac {122691 x}{128}-\frac {28747 x^2}{128}-\frac {21229 x^3}{96}+\frac {6245 x^4}{64}+\frac {1855 x^5}{8}+\frac {3625 x^6}{24}+\frac {625 x^7}{14}+\frac {307461}{512} \int \frac {-1+4 x}{3-x+2 x^2} \, dx-\frac {1156639}{512} \int \frac {1}{3-x+2 x^2} \, dx\\ &=\frac {122691 x}{128}-\frac {28747 x^2}{128}-\frac {21229 x^3}{96}+\frac {6245 x^4}{64}+\frac {1855 x^5}{8}+\frac {3625 x^6}{24}+\frac {625 x^7}{14}+\frac {307461}{512} \log \left (3-x+2 x^2\right )+\frac {1156639}{256} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )\\ &=\frac {122691 x}{128}-\frac {28747 x^2}{128}-\frac {21229 x^3}{96}+\frac {6245 x^4}{64}+\frac {1855 x^5}{8}+\frac {3625 x^6}{24}+\frac {625 x^7}{14}+\frac {1156639 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{256 \sqrt {23}}+\frac {307461}{512} \log \left (3-x+2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 72, normalized size = 0.86 \begin {gather*} \frac {307461}{512} \log \left (2 x^2-x+3\right )+\frac {x \left (120000 x^6+406000 x^5+623280 x^4+262290 x^3-594412 x^2-603687 x+2576511\right )}{2688}-\frac {1156639 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{256 \sqrt {23}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (2+3 x+5 x^2\right )^4}{3-x+2 x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 63, normalized size = 0.75 \begin {gather*} \frac {625}{14} \, x^{7} + \frac {3625}{24} \, x^{6} + \frac {1855}{8} \, x^{5} + \frac {6245}{64} \, x^{4} - \frac {21229}{96} \, x^{3} - \frac {28747}{128} \, x^{2} - \frac {1156639}{5888} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {122691}{128} \, x + \frac {307461}{512} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 63, normalized size = 0.75 \begin {gather*} \frac {625}{14} \, x^{7} + \frac {3625}{24} \, x^{6} + \frac {1855}{8} \, x^{5} + \frac {6245}{64} \, x^{4} - \frac {21229}{96} \, x^{3} - \frac {28747}{128} \, x^{2} - \frac {1156639}{5888} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {122691}{128} \, x + \frac {307461}{512} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 64, normalized size = 0.76 \begin {gather*} \frac {625 x^{7}}{14}+\frac {3625 x^{6}}{24}+\frac {1855 x^{5}}{8}+\frac {6245 x^{4}}{64}-\frac {21229 x^{3}}{96}-\frac {28747 x^{2}}{128}+\frac {122691 x}{128}-\frac {1156639 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{5888}+\frac {307461 \ln \left (2 x^{2}-x +3\right )}{512} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.98, size = 63, normalized size = 0.75 \begin {gather*} \frac {625}{14} \, x^{7} + \frac {3625}{24} \, x^{6} + \frac {1855}{8} \, x^{5} + \frac {6245}{64} \, x^{4} - \frac {21229}{96} \, x^{3} - \frac {28747}{128} \, x^{2} - \frac {1156639}{5888} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {122691}{128} \, x + \frac {307461}{512} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.44, size = 65, normalized size = 0.77 \begin {gather*} \frac {122691\,x}{128}+\frac {307461\,\ln \left (2\,x^2-x+3\right )}{512}-\frac {1156639\,\sqrt {23}\,\mathrm {atan}\left (\frac {4\,\sqrt {23}\,x}{23}-\frac {\sqrt {23}}{23}\right )}{5888}-\frac {28747\,x^2}{128}-\frac {21229\,x^3}{96}+\frac {6245\,x^4}{64}+\frac {1855\,x^5}{8}+\frac {3625\,x^6}{24}+\frac {625\,x^7}{14} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 87, normalized size = 1.04 \begin {gather*} \frac {625 x^{7}}{14} + \frac {3625 x^{6}}{24} + \frac {1855 x^{5}}{8} + \frac {6245 x^{4}}{64} - \frac {21229 x^{3}}{96} - \frac {28747 x^{2}}{128} + \frac {122691 x}{128} + \frac {307461 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{512} - \frac {1156639 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{5888} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________